- content_for :head do
  = stylesheet_link_tag 'graders'
  <meta http-equiv ="refresh" content="10"/>

%h1 Grader information

- form_for :clear, nil, :url => {:action => 'clear_all'} do |f|
  = submit_tag 'Clear all data'

- if @last_task
  Last task:
  = link_to "#{@last_task.id}", :action => 'view', :id => @last_task.id, :type => 'Task'

  %br/

- if @last_test_request
  Last test_request:
  = link_to "#{@last_test_request.id}", :action => 'view', :id => @last_test_request.id, :type => 'TestRequest'


%h2 Current graders

= render :partial => 'grader_list', :locals => {:grader_list => @grader_processes}

%h2 Stalled graders

= render :partial => 'grader_list', :locals => {:grader_list => @stalled_processes}

%h2 Terminated graders

- form_for :clear, nil, :url => {:action => 'clear_terminated'} do |f|
  = submit_tag 'Clear data for terminated graders'

= render :partial => 'grader_list', :locals => {:grader_list => @terminated_processes}
